{% extends "flights/layout.html"%}
{% block content %}
<ul>
    {% for item in flights %}
    <li>
        <a href="{% url 'flights:flight' item.id%}">
            {{ item.id }}
            from <b>{{ item.origin }}</b>
            to <b>{{ item.destination }}</b>
        </a>
    </li>
    {% endfor %}
</ul>
{% endblock %}
